package com.qbb.client.bean.result;

import java.lang.reflect.Method;
import java.util.Map;

import com.qbb.client.exception.HandlerException;

/**
 * 类说明
 * 
 * @author chenhuaiao
 * @version V1.0 创建时间：Mar 12, 2015 5:05:18 PM
 */
public class SocketResultBean {
	private String uuidString;

	public String getUuidString() {
		return uuidString;
	}

	public void setUuidString(String uuidString) {
		this.uuidString = uuidString;
	}

	public Map<String, Object> getResult() {
		Class clas = this.getClass();
		String simpleName = clas.getSimpleName();
		try {
			if ("SocketResultMapBean".equals(simpleName)) {
				Method method = clas.getDeclaredMethod("getMap");
				Map<String, Object> map = (Map<String, Object>) method
						.invoke(this);
				return map;
			}
		} catch (Exception e) {
			HandlerException.error(e);
		}
		return null;
	}
}
